package com.dz.lm.domain.useragent;

import java.util.ArrayList;
import java.util.List;

public class UserAgentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UserAgentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAgentIdIsNull() {
            addCriterion("agent_id is null");
            return (Criteria) this;
        }

        public Criteria andAgentIdIsNotNull() {
            addCriterion("agent_id is not null");
            return (Criteria) this;
        }

        public Criteria andAgentIdEqualTo(Integer value) {
            addCriterion("agent_id =", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdNotEqualTo(Integer value) {
            addCriterion("agent_id <>", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdGreaterThan(Integer value) {
            addCriterion("agent_id >", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("agent_id >=", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdLessThan(Integer value) {
            addCriterion("agent_id <", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdLessThanOrEqualTo(Integer value) {
            addCriterion("agent_id <=", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdIn(List<Integer> values) {
            addCriterion("agent_id in", values, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdNotIn(List<Integer> values) {
            addCriterion("agent_id not in", values, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdBetween(Integer value1, Integer value2) {
            addCriterion("agent_id between", value1, value2, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("agent_id not between", value1, value2, "agentId");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andSupUserIdIsNull() {
            addCriterion("sup_user_id is null");
            return (Criteria) this;
        }

        public Criteria andSupUserIdIsNotNull() {
            addCriterion("sup_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andSupUserIdEqualTo(Integer value) {
            addCriterion("sup_user_id =", value, "supUserId");
            return (Criteria) this;
        }

        public Criteria andSupUserIdNotEqualTo(Integer value) {
            addCriterion("sup_user_id <>", value, "supUserId");
            return (Criteria) this;
        }

        public Criteria andSupUserIdGreaterThan(Integer value) {
            addCriterion("sup_user_id >", value, "supUserId");
            return (Criteria) this;
        }

        public Criteria andSupUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("sup_user_id >=", value, "supUserId");
            return (Criteria) this;
        }

        public Criteria andSupUserIdLessThan(Integer value) {
            addCriterion("sup_user_id <", value, "supUserId");
            return (Criteria) this;
        }

        public Criteria andSupUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("sup_user_id <=", value, "supUserId");
            return (Criteria) this;
        }

        public Criteria andSupUserIdIn(List<Integer> values) {
            addCriterion("sup_user_id in", values, "supUserId");
            return (Criteria) this;
        }

        public Criteria andSupUserIdNotIn(List<Integer> values) {
            addCriterion("sup_user_id not in", values, "supUserId");
            return (Criteria) this;
        }

        public Criteria andSupUserIdBetween(Integer value1, Integer value2) {
            addCriterion("sup_user_id between", value1, value2, "supUserId");
            return (Criteria) this;
        }

        public Criteria andSupUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("sup_user_id not between", value1, value2, "supUserId");
            return (Criteria) this;
        }

        public Criteria andSubUserIdIsNull() {
            addCriterion("sub_user_id is null");
            return (Criteria) this;
        }

        public Criteria andSubUserIdIsNotNull() {
            addCriterion("sub_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andSubUserIdEqualTo(Integer value) {
            addCriterion("sub_user_id =", value, "subUserId");
            return (Criteria) this;
        }

        public Criteria andSubUserIdNotEqualTo(Integer value) {
            addCriterion("sub_user_id <>", value, "subUserId");
            return (Criteria) this;
        }

        public Criteria andSubUserIdGreaterThan(Integer value) {
            addCriterion("sub_user_id >", value, "subUserId");
            return (Criteria) this;
        }

        public Criteria andSubUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("sub_user_id >=", value, "subUserId");
            return (Criteria) this;
        }

        public Criteria andSubUserIdLessThan(Integer value) {
            addCriterion("sub_user_id <", value, "subUserId");
            return (Criteria) this;
        }

        public Criteria andSubUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("sub_user_id <=", value, "subUserId");
            return (Criteria) this;
        }

        public Criteria andSubUserIdIn(List<Integer> values) {
            addCriterion("sub_user_id in", values, "subUserId");
            return (Criteria) this;
        }

        public Criteria andSubUserIdNotIn(List<Integer> values) {
            addCriterion("sub_user_id not in", values, "subUserId");
            return (Criteria) this;
        }

        public Criteria andSubUserIdBetween(Integer value1, Integer value2) {
            addCriterion("sub_user_id between", value1, value2, "subUserId");
            return (Criteria) this;
        }

        public Criteria andSubUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("sub_user_id not between", value1, value2, "subUserId");
            return (Criteria) this;
        }

        public Criteria andSupProductIdIsNull() {
            addCriterion("sup_product_id is null");
            return (Criteria) this;
        }

        public Criteria andSupProductIdIsNotNull() {
            addCriterion("sup_product_id is not null");
            return (Criteria) this;
        }

        public Criteria andSupProductIdEqualTo(Integer value) {
            addCriterion("sup_product_id =", value, "supProductId");
            return (Criteria) this;
        }

        public Criteria andSupProductIdNotEqualTo(Integer value) {
            addCriterion("sup_product_id <>", value, "supProductId");
            return (Criteria) this;
        }

        public Criteria andSupProductIdGreaterThan(Integer value) {
            addCriterion("sup_product_id >", value, "supProductId");
            return (Criteria) this;
        }

        public Criteria andSupProductIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("sup_product_id >=", value, "supProductId");
            return (Criteria) this;
        }

        public Criteria andSupProductIdLessThan(Integer value) {
            addCriterion("sup_product_id <", value, "supProductId");
            return (Criteria) this;
        }

        public Criteria andSupProductIdLessThanOrEqualTo(Integer value) {
            addCriterion("sup_product_id <=", value, "supProductId");
            return (Criteria) this;
        }

        public Criteria andSupProductIdIn(List<Integer> values) {
            addCriterion("sup_product_id in", values, "supProductId");
            return (Criteria) this;
        }

        public Criteria andSupProductIdNotIn(List<Integer> values) {
            addCriterion("sup_product_id not in", values, "supProductId");
            return (Criteria) this;
        }

        public Criteria andSupProductIdBetween(Integer value1, Integer value2) {
            addCriterion("sup_product_id between", value1, value2, "supProductId");
            return (Criteria) this;
        }

        public Criteria andSupProductIdNotBetween(Integer value1, Integer value2) {
            addCriterion("sup_product_id not between", value1, value2, "supProductId");
            return (Criteria) this;
        }

        public Criteria andSubProductIdIsNull() {
            addCriterion("sub_product_id is null");
            return (Criteria) this;
        }

        public Criteria andSubProductIdIsNotNull() {
            addCriterion("sub_product_id is not null");
            return (Criteria) this;
        }

        public Criteria andSubProductIdEqualTo(Integer value) {
            addCriterion("sub_product_id =", value, "subProductId");
            return (Criteria) this;
        }

        public Criteria andSubProductIdNotEqualTo(Integer value) {
            addCriterion("sub_product_id <>", value, "subProductId");
            return (Criteria) this;
        }

        public Criteria andSubProductIdGreaterThan(Integer value) {
            addCriterion("sub_product_id >", value, "subProductId");
            return (Criteria) this;
        }

        public Criteria andSubProductIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("sub_product_id >=", value, "subProductId");
            return (Criteria) this;
        }

        public Criteria andSubProductIdLessThan(Integer value) {
            addCriterion("sub_product_id <", value, "subProductId");
            return (Criteria) this;
        }

        public Criteria andSubProductIdLessThanOrEqualTo(Integer value) {
            addCriterion("sub_product_id <=", value, "subProductId");
            return (Criteria) this;
        }

        public Criteria andSubProductIdIn(List<Integer> values) {
            addCriterion("sub_product_id in", values, "subProductId");
            return (Criteria) this;
        }

        public Criteria andSubProductIdNotIn(List<Integer> values) {
            addCriterion("sub_product_id not in", values, "subProductId");
            return (Criteria) this;
        }

        public Criteria andSubProductIdBetween(Integer value1, Integer value2) {
            addCriterion("sub_product_id between", value1, value2, "subProductId");
            return (Criteria) this;
        }

        public Criteria andSubProductIdNotBetween(Integer value1, Integer value2) {
            addCriterion("sub_product_id not between", value1, value2, "subProductId");
            return (Criteria) this;
        }

        public Criteria andDotIsNull() {
            addCriterion("dot is null");
            return (Criteria) this;
        }

        public Criteria andDotIsNotNull() {
            addCriterion("dot is not null");
            return (Criteria) this;
        }

        public Criteria andDotEqualTo(Integer value) {
            addCriterion("dot =", value, "dot");
            return (Criteria) this;
        }

        public Criteria andDotNotEqualTo(Integer value) {
            addCriterion("dot <>", value, "dot");
            return (Criteria) this;
        }

        public Criteria andDotGreaterThan(Integer value) {
            addCriterion("dot >", value, "dot");
            return (Criteria) this;
        }

        public Criteria andDotGreaterThanOrEqualTo(Integer value) {
            addCriterion("dot >=", value, "dot");
            return (Criteria) this;
        }

        public Criteria andDotLessThan(Integer value) {
            addCriterion("dot <", value, "dot");
            return (Criteria) this;
        }

        public Criteria andDotLessThanOrEqualTo(Integer value) {
            addCriterion("dot <=", value, "dot");
            return (Criteria) this;
        }

        public Criteria andDotIn(List<Integer> values) {
            addCriterion("dot in", values, "dot");
            return (Criteria) this;
        }

        public Criteria andDotNotIn(List<Integer> values) {
            addCriterion("dot not in", values, "dot");
            return (Criteria) this;
        }

        public Criteria andDotBetween(Integer value1, Integer value2) {
            addCriterion("dot between", value1, value2, "dot");
            return (Criteria) this;
        }

        public Criteria andDotNotBetween(Integer value1, Integer value2) {
            addCriterion("dot not between", value1, value2, "dot");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(String value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(String value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(String value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(String value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(String value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(String value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLike(String value) {
            addCriterion("update_time like", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotLike(String value) {
            addCriterion("update_time not like", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<String> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<String> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(String value1, String value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(String value1, String value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(String value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(String value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(String value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(String value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(String value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(String value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLike(String value) {
            addCriterion("create_time like", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotLike(String value) {
            addCriterion("create_time not like", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<String> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<String> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(String value1, String value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(String value1, String value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}